
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Document Title -->
	<title>{$seo.title}</title>
	<meta name="keywords" content="{$seo.keywords}" />
	<meta name="description" content="{$seo.description}" />
       <!-- Favicon -->
   <link rel="shortcut icon" type="image/png" href="favicon.png">
    <link href="{YUNYECMS_PUBLIC}plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
    <!-- CSS Files -->
    <link rel="stylesheet" href="{TPL}static/css/font-awesome.min.css">
    <!--==== Bootstrap css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/bootstrap.min.css">
    <!--==== Swiper css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/swiper.min.css">
       <!--==== Shop Style css file ====-->
    <link rel="stylesheet" href="{TPL}/static/css/shop-style.css">
    <!--==== Style css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/style.css?201901">
    <!--==== Responsive css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/responsive.css?201901">
    <!--==== Theme Color 1 css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/theme-color-1.css">
    <!--==== Custom css file ====-->
    <link rel="stylesheet" href="{TPL}static/css/custom.css">
</head>
<body>
    <div class="preLoader"></div>
    <!-- Main header -->
    <!-- End of Main header -->
     {tpl "head"}
    <!-- Page title -->
     <php>
    	if($rootcat["pic"]) :
    </php>
    <section class="page-title-wrap" data-bg-img="{$rootcat.pic}" data-rjs="2">
        <div class="container">
            <div class="row align-items-center">
                <div class="col">
                    <div class="page-title" data-animate="fadeInUp" data-delay="1.05">
                        <h1>{$rootcat.title}</h1>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <php>
    	endif;
    </php> 
     <!-- End of Page title -->
<div class="breadcumb-wrapper">
    <div class="container">
        <div class="pull-left">
            <ul class="list-inline link-list">
                <li><a href="/">首页</a></li>
				</li>
                {yy:breadcumb  catid=$catid}
                     {loop}
                         {if $v['id']!=$catid }
						   <li><a href="{$v.url}">{$v.title}</a></li> 
						  {else}
						   <li><span>{$v.title}</span></li> 
						{/if}
					 {/loop}
                {/yy}
            </ul>
        </div>
        <div class="pull-right">
        </div>
        <div class="clearfix"></div>
    </div>
</div>     
    <!-- Gallery isotope Section -->
    <section class="pt-50 pb-120 default-bg">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <!-- gallery sorting area -->
                    <div class="row">  
                        <div class="col-md-12">
      <div class="shop-details">
                        <div class="row">
                            <div class="col-lg-9">
                                <div class="blog-wrap single-post-page">
                        <!-- Blog details -->
                        <div class="post-content-block post-main-content mb-60 clearfix">
                            <h1 class="h2 text-center" data-animate="fadeInUp"> {$row.title}</h1>
          <ul class="post-meta nav mb-4 text-center" data-animate="fadeInUp">
                                <li>点击：<span>{$row.hits}</span></li>
                                <li>时间 <a href="#">{$row.time}</a></li>
                            </ul>
                            {if $row["pic"]!=''}
                             <img src=" {$row.pic}" data-rjs="2" alt="" data-animate="fadeInUp"> 
                            {/if}
                            <div class="post-main-content-inner" data-animate="fadeInUp">
                               {$row.content}
                            </div>
                            <div class="d-md-flex align-items-center justify-content-between" data-animate="fadeInUp">
                                <!-- Start Blog details share -->
                                <ul class="post-share-icons social-icons social-icons-light nav justify-content-md-end">
                                    <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
                                </ul>
                                <!-- End of Blog details share -->
                            </div>
                        </div>
               <div class="row margin-top-20">
			   {if !empty($prev)}
				<span class="detail_prev col-xs-12 col-sm-6 col-md-6">
				上一条：
			    <a class="fy-left" href="{$prev.url}">
				   {$prev.title} </a>
			    </p>
				</span>
			   {/if}
              {if !empty($next)}
                     <span class="detail_next col-xs-12 col-sm-6 col-md-6">
                     	下一条：
					<a  class="fy-right" href="{$next.url}">
					{$next.title}</a>
                     </span>
               {/if}     
             </div>
                        <!-- End of Blog details -->
                    </div>
                  <!-- Start shop related product -->
                       <php>if(!empty($row['seokeywords'])):</php>
                                       <div class="related-product">
                                        <h4>相关信息</h4>
                                        <div class="row">
                                            {yy:relation catid="$catid" num="20"  id="$id" keywords="$row['seokeywords']" } 
                               {loop}
                                            <div class="col-lg-3 col-md-3">
                                                <!-- single product -->
					            <div class="sigle--product mb-40">
											<div class="product--item text-center" data-animate="fadeInUp" data-delay=".2">
												<a href="{$v.url}" target="_blank">
													<img src="{$v.pic}" data-rjs="2" alt="Product Image">
													<h5 class="pt-sans">
													   <php>echo strcut($v["title"],15); </php>
													</h5>
												</a>
											</div>
                                 </div>
                                                                          
                                                <!-- single product -->
                                            </div>
                                                {/loop}
				               {/yy}    

                                        </div>
                            </div>
                           <php>endif;</php>
                                    <!-- ENd shop related product -->                           
                           
                           
                            </div>
                            <div class="col-lg-3">
					      <aside>
                         <!-- start single sidebar widget -->
                        <div class="catebox widget_categories mb-30" data-animate="fadeInUp">
                            <h3 class="category-title">{$rootcat.title} <br/><span></span></h3>
                            <ul>
                       {yy:cat pid=$rootcatid}
							{loop}
							  <li><a href="{$v.url}"  <php>if($catid==$v['id']||$rootcatid==$v['id'])  echo ' class="active"';	 </php>><span class="nav-text">{$v.title}</span></a>
							  </li> 
							{/loop}
					   {/yy}
                           </ul>
                        </div>
                        <!-- End of single sidebar widget -->
                        
                        <!-- start single sidebar widget -->
                     <div class="single-sidebar-widget mb-30" data-animate="fadeInUp">
                            <h3 class="h4 font-weight-bold">{$rootcat.title}搜索</h3>
                            <div class="search-form parsley-validate">
                                <form action="{php echo url('content/index/lists');}" method="POST">
                                     <input type="hidden" name="catid" value="{$rootcat.id}">
                                    <input type="text" name="searchkey" placeholder="关键词 ..." required class="theme-input-style">
                                    <button type="submit" class="btn btn-flat btn-primary"><i class="fa fa-search mr-0"></i></button>
                                </form>
                            </div>
                        </div>
                       <!-- End of single sidebar widget -->
                    </aside>
                </div>
                        </div>
                    </div>
                        </div>
                    </div>
                    <!-- End of gallery sorting area -->
                </div>
            </div>
        </div>
    </section>
    <!-- End Of GAllery Isotope Section -->
   {tpl 'foot'}
    <!-- JS Files -->
    <!-- ==== JQuery 3.3.1 js file==== -->
    <script src="{TPL}static/js/jquery-3.3.1.min.js"></script>

    <!-- ==== Bootstrap js file==== -->
    <script src="{TPL}static/js/bootstrap.bundle.min.js"></script>

    <!-- ==== JQuery Waypoint js file==== -->
    <script src="{TPL}static/js/jquery.waypoints.min.js"></script>

    <!-- ==== Sticky js file==== -->
    <script src="{TPL}static/js/sticky.min.js"></script>
    <!-- ==== Swiper js file==== -->
    <script src="{TPL}static/js/swiper.min.js"></script>
    <!-- ==== Parsley js file==== -->
    <script src="{TPL}static/js/parsley.min.js"></script>

    <!-- ==== Menu  js file==== -->
    <script src="{TPL}static/js/menu.min.js"></script>

    <!-- ==== Scrippt js file==== -->
    <script src="{TPL}static/js/scripts.js?20190123"></script>

    <!-- ==== Custom js file==== -->
    <script src="{TPL}static/js/custom.js"></script>
</body>
</html>